function Person(){

}
Person.prototype={
    constructor:Person,
    name:'wcs',
    age:27,
    job:'Software Engineer',
    friends:['wcs','cj'],
    sayName:function(){
        console.log(this.name);
    }
}
let person1=new Person();
let person2=new Person();
person1.friends.push('wy');
console.log(person1.friends);
console.log(person2.friends);
console.log(person1.friends===person2.friends);